import { Module } from '@nestjs/common';
import { UserController } from './user.controller';
import { UserService } from './user.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { SysUser } from './entities/user.entity';
import { JwtUtils } from '../01_auth/jwt.utils';
import { IBaseService } from '../00_base/IBaseService';
import { JwtService } from '@nestjs/jwt';
import { IBaseEntity } from '../00_base/IBaseEntity';
import { SysUserRole } from './entities/user.role.entity';

@Module({
  imports: [TypeOrmModule.forFeature([IBaseEntity, SysUser, SysUserRole])],
  controllers: [UserController],
  providers: [UserService, JwtService, IBaseService, JwtUtils],
  exports: [UserService],
})
export class UserModule {}
